package cn.edu.zjut.medlinebackend.mapper;

import cn.edu.zjut.medlinebackend.model.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 86182
* @description 针对表【user(用户表)】的数据库操作Mapper
* @createDate 2023-11-21 16:01:10
* @Entity cn.edu.zjut.medlinebackend.model.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User getUserByUsername(@Param("username") String username);
    boolean deleteByUsername(@Param("username")String username);
    boolean updateUserInfoByUsername(@Param("userInfo")User user);
}




